package org.example.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import org.example.entity.SalaryStructure;
import org.example.mapper.SalaryStructureMapper;
import org.example.service.SalaryStructureService;
@Service
public class SalaryStructureServiceImpl extends ServiceImpl<SalaryStructureMapper,SalaryStructure> implements SalaryStructureService{

    @Resource
    private SalaryStructureMapper salaryStructureMapper;

    @Override
    public int deleteByPrimaryKey(Integer structureId) {
        return salaryStructureMapper.deleteByPrimaryKey(structureId);
    }

    @Override
    public int insert(SalaryStructure record) {
        return salaryStructureMapper.insert(record);
    }

    @Override
    public int insertSelective(SalaryStructure record) {
        return salaryStructureMapper.insertSelective(record);
    }

    @Override
    public SalaryStructure selectByPrimaryKey(Integer structureId) {
        return salaryStructureMapper.selectByPrimaryKey(structureId);
    }

    @Override
    public int updateByPrimaryKeySelective(SalaryStructure record) {
        return salaryStructureMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(SalaryStructure record) {
        return salaryStructureMapper.updateByPrimaryKey(record);
    }

}
